
public class B {
	
	static void call(A a) {
		A aa = new A();
		aa.x = 6;
		a = aa;
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		A a = new A();
		call(a);
		System.out.println(a.x);
	}

}

class A {
	
	int x;
	
	public A() {
		x = 5;
	}
}
